Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


USL Logging Services Functions

The USB Manager provides services to log status messages from drivers to aid in debugging and software development. The USL provides an interface to this service. When one of these messages is sent, it currently ends up in a buffer that the USB Prober utility knows how to read. Choose the USB Expert Log menu item in the USB Prober Window menu to look at the message.

USBExpertStatus

The USBExpertStatus function sends a general message out to the user. No weight is attached to this message by the operating system.

OSStatus USBExpertStatus(USBDeviceRef ref, void *pointer, UInt32 value);
ref
Device reference for the device driver giving notification.
pointer
A pointer to a string to display.
value
An arbitrary number to display.

USBExpertFatalError

The USBExpertFatalError function is intended to inform the system of nonrecoverable errors in a class driver. Currently no action is taken when this message is received. In the future it may cause a driver to be unloaded.

OSStatus USBExpertFatalError(USBDeviceRef ref, OSStatus status, void *pointer,
                                          UInt32 value);
ref
Device reference for the device driver giving notification.
status
The error status that explains the failure.
pointer
A pointer to a error status string to display.
value
An arbitrary number to display.

© 1998 Apple Computer, Inc. – (Last Updated 23 Nov 98)

Previous | Back Up One Level | Next |